package com.auz.datagenerator.connector;

import com.auz.datagenerator.guiconnector.AbstractPreviewOptionPanel;
import com.auz.datagenerator.guiconnector.PreviewOptionPanel;
import com.auz.datagenerator.guiconnector.StringPreviewOptionPanel;

public class TypeHandler {

	private Type type;
	
	public TypeHandler(Type _type) {
		type = _type;
	}
	
	public AbstractPreviewOptionPanel getOutputPanel() {
		if(type == Type.NUMBER) {
			return new PreviewOptionPanel();
		} else if(type == Type.STRING) {
			return new StringPreviewOptionPanel();
		}
		return null;
	}
	
}
